Tobacco is a custom rider on the rate card. Bundles is showing that ADL has been enabled - not chosen, but enabled.
Event.Value = false;
var product = Event.Engine.Config.GetFirstPayerProduct();
var features = product.GetFeatureParameterValues("Tobacco");
var rider = product.GetRider("ADL");
for (var i in features) {
if (features[i] == '3') {
s = 1;
break;
}
}
Event.Value = s > 0 && product.RateCardID == 1 && rider != null && product.IsRiderIncluded("ADL");
This particular one is to show a presentation if RateCardID is 1 and the custom tobacco rider is either yes or no. Thus, the 1 and 2 and the ADL rider is enabled.